//
//  RechargeCell.m
//  WuJieLive
//
//  Created by 张瀚坤 on 2017/11/6.
//  Copyright © 2017年 zhk. All rights reserved.
//

#import "RechargeCell.h"

@implementation RechargeCell

- (void)awakeFromNib {
    [super awakeFromNib];
}

- (void)bindDataWithIndex:(NSInteger)index
{
    self.selectedBtn.tag = 2000 + index;
    
    
    if (index == 0) {
        
        self.leftImage.image = Image(@"icon_微信支付_大");
        self.payWayLabel.text = @"微信支付";
        self.selectedBtn.selected = YES;
        
    }else if (index == 1){
        
        self.leftImage.image = Image(@"icon_支付宝_大");
        self.payWayLabel.text = @"支付宝";
        
    }else
    {
        self.leftImage.image = Image(@"icon_银联");
        self.payWayLabel.text = @"银联支付";
    }
}


- (IBAction)selectedAction:(UIButton *)sender {
    if (self.delegate && [self.delegate respondsToSelector:@selector(btnClickWithTag:)]) {
        [self.delegate btnClickWithTag:sender.tag];
    }
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
